import axios from 'axios';
import MX from '@/utils/myAxios';
const baseUrl = 'http://xawn.f3322.net:8012/gen/goodstype';
//获取所有商品分类
export const getGoods = () => MX(baseUrl, 'get');
//新增商品
export const addGoods = (data) => MX(baseUrl, 'post', data);
//修改商品
export const changeGoods = (data) => MX(baseUrl, 'post', data);
